package com.dx.common.table.ppt;

import java.sql.Timestamp;

/**
 * AbstractRet_falertId entity provides the base persistence definition of the
 * Ret_falertId entity. @author MyEclipse Persistence Tools
 */

public class Ret_falertId implements java.io.Serializable {

	// Fields

	private String tool_id_fk;
	private Timestamp rpt_timestamp;

	// Constructors

	/** default constructor */
	public Ret_falertId() {
	}

	/** full constructor */
	public Ret_falertId(String tool_id_fk, Timestamp rpt_timestamp) {
		this.tool_id_fk = tool_id_fk;
		this.rpt_timestamp = rpt_timestamp;
	}

	// Property accessors

	public String getTool_id_fk() {
		return this.tool_id_fk;
	}

	public void setTool_id_fk(String tool_id_fk) {
		this.tool_id_fk = tool_id_fk;
	}

	public Timestamp getRpt_timestamp() {
		return this.rpt_timestamp;
	}

	public void setRpt_timestamp(Timestamp rpt_timestamp) {
		this.rpt_timestamp = rpt_timestamp;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Ret_falertId))
			return false;
		Ret_falertId castOther = (Ret_falertId) other;

		return ((this.getTool_id_fk() == castOther.getTool_id_fk()) || (this
				.getTool_id_fk() != null && castOther.getTool_id_fk() != null && this
				.getTool_id_fk().equals(castOther.getTool_id_fk())))
				&& ((this.getRpt_timestamp() == castOther.getRpt_timestamp()) || (this
						.getRpt_timestamp() != null
						&& castOther.getRpt_timestamp() != null && this
						.getRpt_timestamp()
						.equals(castOther.getRpt_timestamp())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getTool_id_fk() == null ? 0 : this.getTool_id_fk()
						.hashCode());
		result = 37
				* result
				+ (getRpt_timestamp() == null ? 0 : this.getRpt_timestamp()
						.hashCode());
		return result;
	}

}